import bkff from "../data/bkff";
import mnth from "../data/mnth";
import gsfs from "../data/gsfs";
import kyms from "../data/kyms";
import ch from "../data/ch";

import msbk from "../data/msbk";

const urls = [
  "/images/tk.jpg",
  "/images/chun1.jpg",
  "/images/chun2.jpg",
  "/images/xia1.jpg",
  "/images/xia2.jpg",
  "/images/qiu1.jpg",
  "/images/qiu2.jpg",
  "/images/dong1.jpg",
  "/images/dong2.jpg"
];

const randomUrl = ()=>{
  let length = urls.length;
  let index = Math.floor(Math.random()*length);
  return urls[index];
}

const formateList = (list)=>{
  return list.map(el=>{
    el.imageUrl = randomUrl();
    return el
  });
}

export const bkffData = formateList(bkff);

export const mnthData = formateList(mnth);

export const gsfsData = formateList(gsfs);

export const kymsData = formateList(kyms);

export const chData = formateList(ch);

export const msbkData = formateList(msbk);


